package com.gsm.controller;

import com.gsm.entity.Result;
import com.gsm.service.WebChartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("chart")
public class WebChartController {
    @Autowired
    private WebChartService webChartService;

    /**
     * 根据条件查询 List
     */
    @GetMapping("chart-list")
    public Result selectRotationChartList() {
        Result result = webChartService.selectRotationChartList();
        return result;
    }
}
